Skip to content

fix(menus): keep menus under the menu bar, cap them at three quarters and show a more-below hint (0.15.0) - #24

Merged
nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.15.0
Nov 30, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.15.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(menus): keep menus under the menu bar, cap them at three quarters and show a more-below hint (0.15.0)

Summary

  • Bar menus no longer cover the menu bar. Cause: MenuBar.open placed them with PopupMenu.openAt, the point routine, which flipped a menu that did not fit below its point above it and clamped it to 4 px from the window top. Fix: a new openUnder keeps the top at the bar bottom plus 4 and sets an inline max-height of min(75% of innerHeight, innerHeight - top - 4) while the panel is hidden, before it is measured.
  • Submenus (openBeside) read the floor of their root menu, take the same cap before measuring and are never placed above the bar; they still open beside their row.
  • New more-below hint: the rows move into .cv-menu-list inside the non-scrolling card, the list gets the bottom mask fade and .cv-menu-more (56 by 12 pill, glass tokens, down chevron) sits over it. It is in place on the first painted frame, fades out in 160 ms at the last row and back in over 490 ms.
  • openAt, the routine for menus opened at a point, keeps its pointer-corner placement and gains the bar floor (.cv-menubar bottom plus 4, or 4 when the bar is hidden for the macOS system menu), the cap and the hint. FormRig has no caller of it today: the search found no right-click menu (the contextmenu listener in ui/settings.ts toggles a favourite theme), so this only guards future context menus.
  • No look change besides the hint, no new z-index, macOS system menu code untouched. Rationale and removed lines are in frontend/HASHOUT_LOG.md.

Commits

  • fix(menus): keep bar menus and their submenus under the menu bar, at most three quarters of the window
  • feat(menus): show a fade and a small pill at the bottom of a menu while rows remain below
  • fix(menus): keep menus opened at a point under the menu bar, with the same cap and hint
  • chore(release): 0.15.0, menus keep under the menu bar with the more-below hint

Version

v0.15.0 (release commit is last). Bumped from 0.14.5: frontend/package.json, the two own-version fields of frontend/package-lock.json, frontend/src/version.ts, backend/app/__init__.py, native/Cargo.toml and the 24 frg-* entries of native/Cargo.lock, src-tauri/Cargo.toml and its formrig entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the README version badge, and a new CHANGELOG.md section. 0.14.5 was never tagged, so the release notes fold it in.

Checks

  • npm run build (tsc --noEmit and vite build): clean, before and after the bump.
  • tests/unit/ui/menu.test.ts: 6 of 6 pass, unchanged. Full npm test: 853 of 853 pass after the bump.
  • Production build in headless Chrome (menuprobe), CPU slowed 4 times, no backend running, every bar menu (File, Edit, View, Rig, Window, Help) at 1280x800 and 1000x480: bar bottom 33.5, every menu's top 38 in every frame while opening, bottom inside the window. At 1000x480 File and View are capped to 360 (75% of 480), the hint is on with the pill at opacity 1 when opened and off at the last row; menus that fit show no hint. Before (a build of origin/main, same probe): View at 1000x480 opened at top 4, 463 tall, over the bar; File was 429 tall (more than 75%).
  • Submenu and keys (scratch script, 4x CPU): File, Send to at 1280x800, 1000x480 and 800x320 opened at tops 377, 248 and 88, 228 tall, under the bar and inside the window. End focused Exit with nothing left below and the hint off; Home focused the first row and the hint came back where the menu is cut off.
  • DOM law: verified under throttling for bar menus (lowest top seen in any frame equals the final top; the hint is set while the panel is hidden).

Not run: the 1871x1080 and 1280x720 sizes, the hint timings (80/380 ms out, 245/750 ms in) and reduced motion, arrow-key focus against the fade, a cut-off submenu showing the hint, right-click measurements (FormRig has no right-click menu to open), the desktop build, the macOS window with Menus in Window, and the native and engine tests (no engine code changed). There are no committed web demos.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

…elow hint

Version sites and the changelog section for 0.15.0. Ran: type check, 853 interface tests and the production build on Linux, and the bar menus measured in headless Chrome at 4x CPU slowdown. Not run: the desktop build, native and engine tests (no engine code changed).
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 21:32
@nodemode-ai
nodemode-ai merged commit a7890f9 into main Nov 30, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.15.0 branch December 1, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant